package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author: wufeng
 * @date: 2018/9/6 19:44
 * @desrcption:
 */
@Getter
@Setter
@ToString
public class CoUserListDTO extends BaseDTO {

    private static final long serialVersionUID = 1273524574978799988L;
    @NotNull(message = "{dto.msg.coUserList.appId.NotNull}")
    private Long appId;

    @NotNull(message = "{dto.msg.coUserList.formId.NotNull}")
    private Long formId;

    @NotNull(message = "{dto.msg.coUserList.formDataIdIn.NotNull}")
    private List<Long> formDataIdIn;

    public Integer del;

    public CoUserListDTO(){
        del = 0;
    }

    public CoUserListDTO(@NotNull(message = "应用id不能为空") Long appId, @NotNull(message = "表单id不能为空") Long formId, @NotNull(message = "表单数据id不能为空") List<Long> formDataIdIn, String corpid) {
        this.appId = appId;
        this.formId = formId;
        this.formDataIdIn = formDataIdIn;
        setCorpid(corpid);
    }
}
